If you know that n/d = p% where d and p are known, then n = d*p/100.
4 s , p , d , 7
4 s , p , d , 7
void main() { int n=0,i,*p; clrscr(); printf("enter the value of n"); scanf("%d",&n); p=&n; for(i=0;i<=n;i++) { *p=*p+i; } printf("value of the sum is %d",*p); getch(); }
park
N-Y-P-D-M- - 2011 Right Through the Very Heart of It 1-4 was released on: USA: 25 October 2011
k-i-d-n-a-p-p-e-d is the correct spelling.
N D P. Barltrop has written: 'Stress concentrations in tubular T-joints'
// Use the & operator (Sometimes called the "address of" operator int variable = 7; printf("Address of variable = %d\n", &variable); printf("Value of variable = %d\n", variable);
#include <stdio.h> #include <stdlib.h> main(){ int x, *p; p = &x; /* initialise pointer */ *p = 0; /* set x to zero */ printf("x is %d\n", x); printf("*p is %d\n", *p); *p += 1; /* increment what p points to */ printf("x is %d\n", x); (*p)++; /* increment what p points to */ printf("x is %d\n", x); exit(EXIT_SUCCESS);
D. N. P. Murthy has written: 'Mathematical modelling' -- subject(s): Mathematical models
N-Y-P-D- - 1967 was released on: USA: 5 September 1967