Follow

# What's one thing that will surprise viewers about Deliverance Creek?

View Full Interview Answered

# How do you calculate the sum of all three-digit positive numbers?

The highest 3-digit number is 999. It's the 999th counting number. The first 99 counting numbers have fewer than 3 digits. So there are (999 - 99) = 900 positi…ve 3-digit numbers. The first is 100, the last is 999. 100 + 999 = 1,099 101 + 998 = 1,099 102 + 997 = 1,099 . . . There are (900/2) = 450 pairs; each pair adds up to 1,099. The sum of all pairs is (450 x 1,099) = 494,550 . (MORE)

Answered

In Technology

# What to do to write a c program to input a number then a digit and findout the place value of that digit?

include<stdio.h> int main(){ int d,j=1,i,flag=0,count=0,k=0; int b[]; char a[],c; printf("enter the number="); scanf("%s",a); printf("enter the digit="); scanf("%c",&…;c); printf("the place value of given digit is:"); for(i=0;a[i]!='\\0';i++) { if(a[i]c) { b[k]a[i]-'0'; b[k]=b[k]=*j; flag=1; count++; k++; } j=j*10;}if(flag==1){ printf("the place value of given digit %c is:",c);for(i=0;i<count;i++)printf("\\n%d",b[i]);}elseprintf("your entered digit is not present in number");return 0;} (MORE)

Answered

# If a 4 digit number is input through the keyboard write a C program to obtain the sum of first and last digit of this number?

include<stdio.h>#include<conio.h>void main(void){int num, a, b, sum;printf(""Please enter a four digit number: "");scanf("%d", &num);a=num/1000; // retrives th…e first digit(left most digit)b=num%10; //retrieves the fourth digit(right most digit)sum=a+b;printf("The sum of first and last digit is %d", sum);} (MORE)

# Setting Number Formats in Excel

A spreadsheet in Excel is comprised of a grid of cells. Each cell (which is defined as the intersection between a row and a column) can be allocated its own attributes. This i…s how cells are formatted. The most important attribute for any cell is the number type. This attribute (MORE)

In Craft Tips

# Counting: Activities and Number Crafts for Preschoolers

Your preschool-aged child is at a point in his or her young life when learning is incredibly fun and entertaining. Even though attention spans are very short, their ability to… learn new concepts is quick. You can foster further learning and early math skills by creating experiences surrounding counting and (MORE)

In Bible

# Introduction to the Book of Numbers

The book of Numbers is the fourth book in the Bible. It chronicles the history of the Hebrew people, following the giving of the Ten Commandments to Moses at Mount Sinai. It i…s part of the Pentateuch and part of the Jewish Torah. As such, it is an important part (MORE)

Answered

# A 5 digit positive integer is entered through the keyboard how to write a function in C to calculate sum of digits of the 5 digits number by using recursion and without using recursion?

include <stdio.h> int digit_sum(int); int digit_sum_rec(int); main() { int num; printf("Enter 5 digit positive integer. : "); scanf("%d",&num); printf("The s…um of the digits is: %d\\n",digit_sum(num)); printf("The sum of the digits is (calculated recursively): %d\\n", digit_sum_rec(num)); } int digit_sum(int n) { int t=0; while(n) { t+=n%10; n/=10; } return t; } int digit_sum_rec(int n) { if(n==0) return 0; return (n%10)+digit_sum_rec(n/10); } (MORE)

Answered

In Technology

# Write a c program to compute the sum of digits of a given integer number?

int sumDigits(int n) { int sum = 0; while( n > 0 ) { sum += (n % 10); // add last digit of n to sum n /= 10; // divide n by 10 to "chop off" the last… digit } return sum; } ____________________________________________________ C program to find the sum of entered digit: By Jatinder Pal Singh #include<stdio.h>#include<conio.h>void main(){clrscr();int n,num,x,sum=0;printf("Enter a number=");scanf("%d",&n);while(n>0){x=n%10;sum=sum+x;n=n/10;}printf("Sum of digits of a number=%d",sum);getch();} (MORE)

Answered

In Technology

# Write a program in c language to reverse the five digits number?

//Reverse of the Number// Programme Written By Maulin Thaker Ahmedabad;#include<stdio.h>#include<conio.h>void main(){int a,b,c,d,e;clrscr();printf("Enter the Numbe…r to Find it's Reverse\\n");scanf("%d",&a);while(a!=0){b=a%10;c=a/10;printf("%d",b);a=c;}getch();} (MORE)